package com.study.mybatisplus.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 录白id
     */
    private String lubaiId;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 手机号
     */
    @TableField(select = false)
    private String phone;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 星座
     */
    private String constellation;

    /**
     * 国家
     */
    private String country;

    /**
     * 省份
     */
    private String province;

    /**
     * 城市
     */
    private String city;

    /**
     * 渠道  android  ios
     */
    private String channel;

    /**
     * 机型
     */
    private String modelType;

    /**
     * 性别
     */
    private String sex;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 维度
     */
    private BigDecimal latitude;

    /**
     * IP地址
     */
    private String ip;

    /**
     * mac地址
     */
    private String machineAddress;

    /**
     * 运营商
     */
    private String operator;

    /**
     * 手机品牌
     */
    private String brand;

    /**
     * 设备版本号
     */
    private String system;

    /**
     * 是否禁用 0否 1是
     */
    private Boolean isForbidden;

    /**
     * 是否允许录白搜索到自己 0否 1是
     */
    private Boolean isAllowSearch;

    /**
     * 金币余额
     */
    private Integer coin;

    /**
     * 充值次数
     */
    private Integer rechargeCount;

    /**
     * 邮友数
     */
    private Integer friendCount;

    /**
     * 礼物数
     */
    private Integer presentCount;

    /**
     * 注册类型 1正常注册 2回流注册
     */
    private Integer type;

    /**
     * 最后登陆时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginDatetime;

    /**
     * 最后一次清空消息时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastWipeMessageDatetime;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDatetime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDatetime;

    /**
     * 消费总金币
     */
    private Integer consumeCoin;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getLubaiId() {
        return lubaiId;
    }

    public void setLubaiId(String lubaiId) {
        this.lubaiId = lubaiId;
    }
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }
    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }
    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }
    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getMachineAddress() {
        return machineAddress;
    }

    public void setMachineAddress(String machineAddress) {
        this.machineAddress = machineAddress;
    }
    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system;
    }
    public Boolean getForbidden() {
        return isForbidden;
    }

    public void setForbidden(Boolean isForbidden) {
        this.isForbidden = isForbidden;
    }
    public Boolean getAllowSearch() {
        return isAllowSearch;
    }

    public void setAllowSearch(Boolean isAllowSearch) {
        this.isAllowSearch = isAllowSearch;
    }
    public Integer getCoin() {
        return coin;
    }

    public void setCoin(Integer coin) {
        this.coin = coin;
    }
    public Integer getRechargeCount() {
        return rechargeCount;
    }

    public void setRechargeCount(Integer rechargeCount) {
        this.rechargeCount = rechargeCount;
    }
    public Integer getFriendCount() {
        return friendCount;
    }

    public void setFriendCount(Integer friendCount) {
        this.friendCount = friendCount;
    }
    public Integer getPresentCount() {
        return presentCount;
    }

    public void setPresentCount(Integer presentCount) {
        this.presentCount = presentCount;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public LocalDateTime getLastLoginDatetime() {
        return lastLoginDatetime;
    }

    public void setLastLoginDatetime(LocalDateTime lastLoginDatetime) {
        this.lastLoginDatetime = lastLoginDatetime;
    }
    public LocalDateTime getLastWipeMessageDatetime() {
        return lastWipeMessageDatetime;
    }

    public void setLastWipeMessageDatetime(LocalDateTime lastWipeMessageDatetime) {
        this.lastWipeMessageDatetime = lastWipeMessageDatetime;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }
    public Integer getConsumeCoin() {
        return consumeCoin;
    }

    public void setConsumeCoin(Integer consumeCoin) {
        this.consumeCoin = consumeCoin;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", lubaiId=" + lubaiId +
            ", nickname=" + nickname +
            ", avatar=" + avatar +
            ", phone=" + phone +
            ", birthday=" + birthday +
            ", constellation=" + constellation +
            ", country=" + country +
            ", province=" + province +
            ", city=" + city +
            ", channel=" + channel +
            ", modelType=" + modelType +
            ", sex=" + sex +
            ", longitude=" + longitude +
            ", latitude=" + latitude +
            ", ip=" + ip +
            ", machineAddress=" + machineAddress +
            ", operator=" + operator +
            ", brand=" + brand +
            ", system=" + system +
            ", isForbidden=" + isForbidden +
            ", isAllowSearch=" + isAllowSearch +
            ", coin=" + coin +
            ", rechargeCount=" + rechargeCount +
            ", friendCount=" + friendCount +
            ", presentCount=" + presentCount +
            ", type=" + type +
            ", lastLoginDatetime=" + lastLoginDatetime +
            ", lastWipeMessageDatetime=" + lastWipeMessageDatetime +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
            ", consumeCoin=" + consumeCoin +
        "}";
    }
}
